<template>
  <div>
    <router-view
      :shop-info="shopInfo"
      :menu-info="menuInfo"
      :recommend-info="recommendInfo"
      @reGetCartInfo="reGetCartInfo"
    />
  </div>
</template>
<script>
export default {
  props: {
    shopInfo: { // 商城信息
      type: Object,
      default() {
        return {};
      }
    },
    menuInfo: { // 菜单信息
      type: Array,
      default() {
        return [];
      }
    },
    recommendInfo: { // 推荐商品信息
      type: Array,
      default() {
        return [];
      }
    }
  },
  methods: {
    reGetCartInfo() {
      this.$emit('reGetCartInfo');
    }
  }
};
</script>
